import Mock from 'mockjs'

var Random=Mock.Random
Random.extend({
	caipin:function(res){
		var constellations=['潮州菜','东北菜','本帮菜','赣菜','楚菜','京菜','津菜','冀菜','豫菜',
		'鲁菜','川菜','粤菜','苏菜','闽菜','浙菜','湘菜','徽菜'
			]
		return this.pick(constellations)
	}
	
})

var user = Mock.mock({
	'list|15':[{
		'pid|+1':'0',
		caipin:'@caipin'
	}]
})

Mock.mock('http://jx.xuzhixiang.top/ap/api/productlist.php',user)